package router

import (
	"center-platform/config"
	"github.com/gin-gonic/gin"
)

func Register(r *gin.Engine) {
	RegisterUserRouter(r)
	RegisterPostRouter(r)
	RegisterCommentRouter(r)
	RegisterToolsRouter(r)
	err := r.Run(":" + config.GlobalConfig.Http.Port)
	if err != nil {
		panic(err.Error())
	}
}
